class InetAddressRange
attr_reader :startpoint,:endpoint

  def initialize(startpoint,endpoint)
  puts "start=>"+startpoint+",end=>"+endpoint
  @startpoint=RangeMark.new(startpoint)
  @endpoint=RangeMark.new(endpoint)
  if(@startpoint > @endpoint)then raise "Start address is higher than end address" end
  end
  

  def isInRange(ip)
  ip=RangeMark.new(ip)
  (ip >= @startpoint && ip <= @endpoint)
  end
end
